package com.winter.Controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.winter.model.IeliteRelainfo;
import com.winter.service.IeliteRelainfoService;
import com.winter.util.Result;

@RestController
@RequestMapping("v1/ielite")
public class IeliteRelainfoController {

    @Resource
    private IeliteRelainfoService ieliteRelainfoService;

    /**
     * 添加收藏信息
     */
    @PostMapping("/insertIelite")
    public Result insertIelite(@RequestBody IeliteRelainfo info) {
        return ieliteRelainfoService.insertIelite(info);
    }

    /**
     * 取消收藏信息
     */
    @GetMapping("/deleteIelite")
    public Result deleteIelite(String relaId, String createUser) {
        return ieliteRelainfoService.deleteIelite(relaId, createUser);
    }
    
    /*
     * 我的公司收藏列表
     * 
     */
    @GetMapping("/findIeliteList")
    public Result findIeliteList(Integer pageSize, Integer pageNumber,String userNo,String type){
		return ieliteRelainfoService.findIeliteList(pageSize, pageNumber, userNo, type);
    	
    }
}
